<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png" @click="submit">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  methods: {
    submit() {
      // console.log(this)
      // this.$http.post("/data/index").then(res => {
      this.$http.get("/land/md/app/zfCase/getCaseCount").then(res => {
        console.log(res);
      }); 
    }
  }
}
</script>
